<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>简答改卷</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<load href= "__JS__/jshelper.js" /> 
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
<script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/correcttest4/courseid/{$courseid}/testid/{$testid}/no/{$no}/number/{$number1}';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
	</head>
	<body>	
		<layout name="Auth:header" />
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <layout name="Auth:leftmenu" />
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>改卷(简答题)</h1>
                    <p style="font-size:12px">当前位置：
                        <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                        <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                        <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                        <a href='__URL__/testcorrect' class="nowpositionhref">选择课程</a>>
                        <a href='__URL__/test_correct/id/{$courseid}' class="nowpositionhref">选择试题</a>>
                        <a href='__URL__/correct_test/courseid/{$courseid}/id/{$testid}' class="nowpositionhref">选择学生</a>>
                        <a href="">改卷</a>
                     </p>
                     </div>
				
				<div id='result' style="color:red; font-size:12px;"></div>
					<load href"__PUBLIC__/js/list_show.js">
					<form id="form1" name="form1" method="post" action="__URL__/sa_save"> 
                    
                    <table  width="100%" class="table table-striped table-bordered table-condensed">
                        <tbody>
                        	<volist name='list' id='vo'>
                        	<input type='hidden' name='id' value={$vo.id}>
		                    <input type='hidden' name='number' value={$vo.number}>
		                    <input type='hidden' name='testid' value={$vo.testid}>
		                    <input type='hidden' name='courseid' value={$courseid}>
		                    <input type='hidden' name='no' value={$vo.no}>
                        	<tr>
                            	<td>试卷编号</td>
                            	<td>{$vo.testid}</td>
                            </tr>
                            <tr>
                            	<td>题号</td>
                                <td>{$vo.number}</td>
                            </tr>
                            <tr>
                            	<td>分值</td>
                                <td>{$vo.score1}</td>
                            </tr>
                            <tr>
                            	<td>题目</td>
                                <td>{$vo.name}</td>
                            </tr>
                            <tr>
                            	<td>答案</td>
                                <td>{$vo.answer}</td>
                            </tr>
                            <tr>
                            	<td>得分</td>
                                <td><input type='text' name='score' value={$vo.score}></td>
                            </tr>
                            </volist>
                        </tbody>
                    </table>
                    
				<!--	<tbody id="tab">
						
							<tr id="table_saq_show">
								
								<td style="width:150px;">试卷编号
								<br>第题:
								<br>分值:分
								<br>题目:
								<br>答案:
								<br>得分:<br></td>
						
					</tbody>-->
						<a href="javascript:history.back()" class="btn btn-success" style="width:60px;">上一题</a>
						<input name="submit" type="submit" value="下一题" style="width:80px;" class="btn btn-success" >
					
					</form>
			
				<!--  div align="right" class="green-black" style="width:900px; position:relative; top:20px; left:-35px;">
					{$page}
				</div>-->
		</div>
		</div>
	</body>
</html></body>
</html>